home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / HARDWARE / VIC20.ZIP / VIC20.MEM
Text File  |  1995-08-22  |  22KB  |  627 lines

  1. --
  2. Subject: VIC-20 memory map (long)
  3.  
  4. Okay, here's what all you VIC-20 freaks out there have been waiting for...
  5. Sorry for the delay, but I guess I'm just too lazy to correct the errors
  6. that OCR scanners make :-)  Also I found a couple of typos in the VIC-20
  7. Programmer's Reference Guide itself. I tried to correct everything, but
  8. who knows, there may still be quite many typos lurking in this. Here it comes:
  9.  
  10.  
  11. MEMORY MAPS
  12.  
  13. The following memory maps provide a guide which shows which
  14. special locations are set aside for use by the VlC's operating
  15. system . . . and what those locations are used for.
  16.  
  17.            Memory Map
  18.  
  19.    HEX      DECIMAL  DESCRIPTION
  20.  
  21.    0000      0       Jump for USR
  22. 0001-0002    1-2     Vector for USR
  23. 0003-0004    3-4     Float-Fixed vector
  24. 0005-0006    5-6     Fixed-Float vector
  25.    0007      7       Search character
  26.    0008      8       Scan-quotes flag
  27.    0009      9       TAB column save
  28.    000A     10       0=LOAD, 1=VERIFY
  29.    000B     11       Input buffer pointer/# subscript
  30.    000C     12       Default DIM flag
  31.    000D     13       Type: FF=string, 00=numeric
  32.    000E     14       Type: 80=integer, 00=floating point
  33.    000F     15       DATA scan/LlST quote/memory flag
  34.    0010     16       Subscript/FNx flag
  35.    0011     17       0 = INPUT;$40 = GET;$98 = READ
  36.    0012     18       ATN sign/Comparison eval flag
  37.    0013     19       Current l/O prompt flag
  38. *0014-0015  20-21    Integer value
  39.    0016     22       Pointer: temporary string stack
  40. 0017-0018   23-24    Last temp string vector
  41. 0019-0021   25-33    Stack for temporary strings
  42. 0022-0025   34-37    Utility pointer area
  43. 0026-002A   38-42    Product area for multiplication
  44. *002B-002C  43-44    Pointer: Start of Basic
  45. *002D-002E  45-46    Pointer: Start of Variables
  46. *002F-0030  47-48    Pointer: Start of Arrays
  47. *0031-0032  49-50    Pointer: End of Arrays
  48. *0033-0034  51-52    Pointer: String storage (moving down)
  49. 0035-0036   53-54    Utility string pointer
  50. *0037-0038  55-56    Pointer: Limit of memory
  51. 0039-003A   57-58    Current Basic line number
  52. 003B-003C   59-60    Previous Basic line number
  53. 003D-003E   61-62    Pointer: Basic statement for CONT
  54. 003F-0040   63-64    Current DATA line number
  55. 0041-0042   65-66    Current DATA address
  56. *0043-0044  67-68    Input vector
  57.  
  58. * Useful memory location
  59.  
  60.             170
  61.  
  62.  
  63.    HEX      DECIMAL  DESCRIPTION
  64.  
  65. 0045-0046   69-70    Current variable name
  66. 0047-0048   71-72    Current variable address
  67. 0049-004A   73-74    Variable pointer for FOR/NEXT
  68. 004B-004C   75-76    Y-save; op-save; Basic pointer save
  69.    004D     77       Comparison symbol accumulator
  70. 004E-0053   78-83    Misc work area, pointers, etc
  71. 0054-0056   84-86    Jump vector for functions
  72. 0057-0060   87-96    Misc numeric work area
  73.   *0061     97       Accum#1: Exponent
  74. *0062-0065  98-101   Accum#1: Mantissa
  75.   *0066     102      Accum#1: Sign
  76.    0067     103      Series evaluation constant pointer
  77.    0068     104      Accum#1 hi-order (overflow)
  78. *0069-006E  105-110  Accum#2: Exponent, etc.
  79.    006F     111      Sign comparison, Acc#1 vs #2
  80.    0070     112      Accum#1 lo-order (rounding)
  81. 0071-0072   113-114  Cassette buffer length/Series pointer
  82. *0073-008A  115-138  CHRGET subroutine (get BASIC char)
  83. 007A-007B   122-123  Basic pointer (within subroutine)
  84. 008B-008F   139-143  RND seed value
  85.   *0090     144      Status word ST
  86.    0091     145      Keyswitch PIA: STOP and RVS flags
  87.    0092     146      Timing constant for tape
  88.    0093     147      Load=0, Verify=1
  89.    0094     148      Serial output: deferred char flag
  90.    0095     149      Serial deferred character
  91.    0096     150      Tape EOT received
  92.    0097     151      Register save
  93.   *0098     152      How many open files
  94.   *0099     153      Input device (normally 0)
  95.   *009A     154      Output (CMD) device, normally 3
  96.    009B     155      Tape character parity
  97.    009C     156      Byte-received flag
  98.    009D     157      Direct=$80/RUN=0 output control
  99.    009E     158      Tape Pass 1 error log/char buffer
  100.    009F     159      Tape Pass 2 error log corrected
  101. *00A0-00A2  160-162  Jiffy Clock (HML)
  102.    00A3     163      Serial bit count/EOI flag
  103.    00A4     164      Cycle count
  104.    00A5     165      Countdown, tape write/bit count
  105.    00A6     166      Pointer: tape buffer
  106.    00A7     167      Tape Write ldr count/Read pass/inbit
  107.    00A8     168      Tape Write new byte/Read error/inbit
  108.              cnt
  109.    00A9     169      Write start bit/Read bit err/stbit
  110.  
  111. * Useful memory location
  112.  
  113.             171
  114.  
  115.  
  116.    HEX      DECIMAL  DESCRIPTION
  117.  
  118.    00AA     170      Tape Scan;Cnt;Ld;End/byte assy
  119.    00AB     171      Write lead length/Rd checksum/parity
  120. 00AC-00AD   172-173  Pointer: tape buffer, scrolling
  121. 00AE-00AF   174-175  Tape end addresses/End of program
  122. 00B0-00B1   176-177  Tape timing constants
  123. *00B2-00B3  178-179  Pointer: start of tape buffer
  124.    00B4     180      Tape timer (1 =enable); bit cnt
  125.    00B5     181      Tape EOT/RS-232 next bit to send
  126.    00B6     182      Read character error/outbyte buffer
  127.   *00B7     183      # characters in file name
  128.   *00B8     184      Current logical file
  129.   *00B9     185      Current secondary address
  130.   *00BA     186      Current device
  131. *00BB-00BC  187-188  Pointer: to file name
  132.    00BD     189      Write shift word/Read input char
  133.    00BE     190      # blocks remaining to Write/Read
  134.    00BF     191      Serial word buffer
  135.    00C0     192      Tape motor interlock
  136. 00C1-00C2   193-194  I/O start addresses
  137. 00C3-00C4   195-196  KERNAL setup pointer
  138.   *00C5     197      Current key pressed
  139.   *00C6     198      # chars in keyboard buffer
  140.   *00C7     199      Screen reverse flag
  141.    00C8     200      Pointer: End-of-line for input
  142. 00C9-00CA   201-202  Input cursor log (row, column)
  143.   *00CB     203      Which key: 64 if no key
  144.    00CC     204      cursor enable (0=flash cursor)
  145.    00CD     205      Cursor timing countdown
  146.    00CE     206      Character under cursor
  147.    00CF     207      Cursor in blink phase
  148.    00D0     208      Input from screen/from keyboard
  149. *00D1-00D2  209-210  Pointer to screen line
  150.   *00D3     211      Position of cursor on above line
  151.    00D4     212      0=direct cursor, else programmed
  152.   *00D5     213      Current screen line length
  153.   *00D6     214      Row where cursor lives
  154.    00D7     215      Last inkey/checksum/buffer
  155.   *00D8     216      # of INSERTs outstanding
  156. *00D9-00F0  217-240  Screen line link table
  157.    00F1     241      Dummy screen link
  158.    00F2     242      Screen row marker
  159. *00F3-00F4  243-244  Screen color pointer
  160. 00F5-00F6   245-246  Keyboard pointer
  161. 00F7-00F8   247-248  RS-232 Rcv pointer
  162. 00F9-00FA   249-250  RS-232 Tx pointer
  163.  
  164. * Useful memory location
  165.  
  166.             172
  167.  
  168.  
  169. HEX     DECIMAL  DESCRIPTION
  170.  
  171. *00FB-00FE  251-254  Operating system free zero page space
  172. 00FF        255      Basic storage
  173.  
  174. 0100-010A   256-266  Floating to ASCII work area
  175. 0100-013E   256-318  Tape error log
  176. 0100-01FF   256-511  Processor stack area
  177.  
  178. *0200-0258  512-600  Basic input buffer
  179. *0259-0262  601-610  Logical file table
  180. *0263-026C  611-620  Device # table
  181. *026D-0276  621-630  Secondary Address table
  182. *0277-0280  631-640  Keyboard buffer
  183. *0281-0282  641-642  Start of memory for op system
  184. *0283-0284  643-644  Top of memory for op system
  185. 0285        645      Serial bus timeout flag
  186. *0286       646      Current color code
  187. 0287        647      Color under cursor
  188. *0288       648      Screen memory page
  189. *0289       649      Max size of keyboard buffer
  190. *028A       650      Key repeat (128=repeat all keys)
  191. *028B       651      Repeat speed counter
  192. 028C        652      Repeat delay counter
  193. *028D       653      Keyboard Shift/Control flag
  194. 028E        654      Last keyboard shift pattern
  195. 028F-0290   655-656  Pointer: decode logic
  196. *0291       657      Shift mode switch (0 = enabled,  128 = locked)
  197. 0292        658      Autoscrolldownflag (0=on, <>0=off)
  198. 0293        659      RS-232 control register
  199. 0294        660      RS-232 command register
  200. 0295-0296   661-662  Nonstandard (Bit time/2-100)
  201. 0297        663      RS-232 status register
  202. 0298        664      Number of bits to send
  203. 0299-029A   665-666  Baud rate (full) bit time
  204. 029B        667      RS-232 receive pointer
  205. 029C        668      RS-232 input pointer
  206. 029D        669      RS-232 transmit pointer
  207. 029E        670      RS-232 output pointer
  208. 029F-02A0   671-672  Holds IRQ during tape operations
  209. 02A1-02FF   673-767  Program indirects
  210.  
  211. *0300-0301  768-769  Error message link
  212. 0302-0303   770-771  Basic warm start link
  213. 0304-0305   772-773  Crunch Basic tokens link
  214. 0306-0307   774-775  Print tokens link
  215. 0308-0309   776-777  Start new Basic code link
  216.  
  217. * Useful memory location
  218.  
  219.             173
  220.  
  221.  
  222. HEX      DECIMAL       DESCRIPTION
  223.  
  224. 030A-030B    778-779       Get arithmetic element link
  225. 030C         780       Storage for 6502 .A register
  226. 030D         781       Storage for 6502 .X register
  227. 030E         782       Storage for 6502 .Y register
  228. 030F         783       Storage for 6502 .P register
  229. 0310-0313    784-787       ??
  230. 0314-0315    788-789       Hardware (IRQ) interrupt vector [EABF]
  231. 0316-0317    790-791       Break interrupt vector    [FED2]
  232. 0318-0319    792-793       NMI interrupt vector        [FEAD]
  233. 031A-031B    794-795       OPEN vector            [F40A]
  234. 031C-031D    796-797       CLOSE vector            [F34A]
  235. 031E-031F    798-799       Set-input vector        [F2C7]
  236. 0320-0321    800-801       Set-output vector        [F309]
  237. 0322-0323    802-803       Restore l/O vector        [F3F3]
  238. 0324-0325    804-805       INPUT vector            [F20E]
  239. 0326-0327    806-807       Output vector        [F27A]
  240. 0328-0329    808-809       Test-STOP vector        [F770]
  241. 032A-032B    810-811       GET vector            [F1F5]
  242. 032C-032D    812-813       Abort l/O vector        [F3EF]
  243. 032E-032F    814-815       User vector (default BRK)    [FED2]
  244. 0330-0331    816-817       Link to load RAM        [F549]
  245. 0332-0333    818-819       Link to save RAM        [F685]
  246. 0334-033B    820-827       ??
  247. *003C-03FB   828-1019      Cassette buffer
  248. 0400-0FFF    1024-4095     3K expansion RAM area
  249. 1000-1DFF    4096-7679     User Basic area
  250. 1E00-1FFF    7680-8191     Screen memory
  251. 2000-3FFF    8192-16383    8K expansion RAM/ROM block 1
  252. 4000-5FFF    16384-24575   8K expansion RAM/ROM block 2
  253. 6000-7FFF    24576-32767   8K expansion RAM/ROM block 3
  254.  
  255. NOTE: When additional memory is added to block 1 (and 2 and 3), the
  256. KERNAL relocates the following things for BASIC:
  257.  
  258. 1000-11FF    4096-4607     Screen memory
  259.  
  260. 1200-?       4608-?    User Basic area
  261.  
  262. 9400-95FF    37888-38399   Color RAM
  263.  
  264. 8000-8FFF    32768-36863   4K Character generator ROM
  265. 8000-83FF    32768-33791   Upper case and graphics
  266. 8400-87FF    33792-33815   Reversed upper case and graphics
  267. 8800-8BFF    33816-35839   Upper and lower case
  268. 8C00-8FFF    35840-36863   Reversed upper and lower case
  269. 9000-93FF    36864-37887   I/O BLOCK 0
  270.  
  271. * Useful memory location
  272.  
  273.             174
  274.  
  275.  
  276. HEX      DECIMAL       DESCRIPTION
  277.  
  278. 9000-900F    36864-36879   Address of VIC chip registers
  279. 9000     36864     bits 0-6 horizontal centering
  280.                bit 7 sets interlace scan
  281. 9001     36865     vertical centering
  282. 9002     36866     bits 0-6 set # of columns
  283.                bit 7 is part of video matrix address
  284. 9003     36867     bits 1-6 set # of rows
  285.                bit 0 sets 8x8 or 16x8 chars
  286. 9004     36868     TV raster beam line
  287. 9005     36869     bits 0-3 start of character memory
  288.                (default = 0)
  289.                bits 4-7 is rest of video address
  290.                (default= F)
  291.                BITS 3,2,1,0 CM startinq address
  292.                     HEX   DEC
  293.                0000   ROM   8000  32768
  294.                0001        8400  33792
  295.                0010        8800  34816
  296.                0011        8C00  35840
  297.                1000   RAM   0000  0000
  298.                1001    xxxx
  299.                1010    xxxx  unavail.
  300.                1011    xxxx
  301.                1100        1000  4096
  302.                1101        1400  5120
  303.                1110        1800  6144
  304.                1111        1C00  7168
  305.  
  306. 9006     36870    horizontal position of light pen
  307. 9007     36871    vertical position of light pen
  308. 9008     36872    Digitized value of paddle X
  309. 9009     36873    Digitized value of paddle Y
  310. 900A     36874    Frequency for oscillator 1 (low)
  311.           (on: 128-255)
  312. 900B     36875    Frequency for oscillator 2 (medium)
  313.           (on: 128-255)
  314. 900C     36876    Frequency for oscillator 3 (high)
  315.           (on: 128-255)
  316. 900D     36877    Frequency of noise source
  317. 900E     36878    bit 0-3 sets volume of all sound
  318.           bits 4-7 are auxiliary color information
  319. 900F     36879    Screen and border color register
  320.            bits 4-7 select background color
  321.            bits 0-2 select border color
  322.            bit 3 selects inverted or normal mode
  323.  
  324.  
  325.             175
  326.  
  327.  
  328. HEX    DECIMAL DESCRIPTION
  329.  
  330. 9110-911F  37136-37151 6522 VIA#1
  331.    9110    37136     Port B output register
  332.              (user port and RS-232 lines)
  333.        PIN    6522 DESCRIPTION       EIA   ABV
  334.        ID     ID
  335.  
  336.        C      PB0 Received data      (BB)  Sin
  337.        D      PB1 Request to Send      (CA)  RTS
  338.        E      PB2 Data terminal ready (CD)  DTR
  339.        F      PB3 Ring indicator      (CE)  RI
  340.        H      PB4 Received line signal (CF)  DCD
  341.        J      PB5 Unassigned      ( )   XXX
  342.        K      PB6 Clear to send      (CB)  CTS
  343.        L      PB7 Data set ready      (CC)  DSR
  344.        B      CB1 Interrupt for Sin   (BB)  Sin
  345.        M      CB2 Transmitted data    (BA)  Sout
  346.  
  347.        A      GND Protective ground   (M)   GND
  348.        N      GND Signal ground      (AB)  GND
  349.   9111     37137     Port A output register
  350.            (PA0) Bit 0=Serial CLK IN
  351.            (PA1) Bit 1=Serial DATA IN
  352.            (PA2) Bit 2=Joy 0
  353.            (PA3) Bit 3=Joy 1
  354.            (PA4) Bit 4=Joy 2
  355.            (PA5) Bit 5 = Lightpen/Fire button
  356.            (PA6) Bit 6=Cassette switch sense
  357.            (PA7) Bit 7=Serial ATN out
  358. 9112       37138  Data direction register B
  359. 9113       37139  Data direction register A
  360. 9114       37140  Timer 1 low byte
  361. 9115       37141  Timer 1 high byte & counter
  362. 9116       37142  Timer 1 low byte
  363. 9117       37143  Timer 1 high byte
  364. 9118       37144  Timer 2 low byte
  365. 9119       37145  Timer 2 high byte
  366. 911A       37146  Shift register
  367. 911B       37147  Auxiliary control register
  368. 911C       37148  Peripheral control register
  369.           (CA1, CA2, CB1, CB2)
  370.           CA1 = restore key (Bit 0)
  371.           CA2 = cassette motor control (Bits 1-3)
  372.           CB1 = interrupt signal for received
  373.               RS-232 data (Bit 4)
  374.           CB2=transmitted RS-232 data (Bits
  375.               5-7)
  376.   911D     37149  Interrupt flag register
  377.  
  378.             176
  379.  
  380.  
  381.     HEX      DECIMAL        DESCRIPTION
  382.  
  383.    911E      37150          Interrupt enable register
  384.    911F      37151          Port A (Sense cassette switch)
  385.  9120-912F   37152-37167    6522 VIA#2
  386.    9120      37152          Port B output register
  387.                 keyboard column scan
  388.                 (PB3) Bit 3 =cassette write line
  389.                 (PB7) Bit 7 =Joy 3
  390.    9121      37153          Port A output register
  391.                 keyboard row scan
  392.    9122      37154          Data direction register B
  393.    9123      37155          Data direction register A
  394.    9124      37156          Timer 1, low byte latch
  395.    9125      37157          Timer 1, high byte latch
  396.    9126      37158          Timer 1, low byte counter
  397.    9127      37159          Timer 1, high byte counter
  398.                 timer 1 is used for the
  399.                 60 time/second interrupt
  400.    9128      37160          Timer 2, low byte latch
  401.    9129      37161          Timer 2, high byte latch
  402.    912A      37162          Shift register
  403.    912B      37163          Auxiliary control register
  404.    912C      37164          Peripheral control register
  405.                 CA1 Cassette read line (Bit 0)
  406.                 CA2 Serial clock out (Bits 1-3)
  407.                 CB1 Serial SRQ IN (Bit 4)
  408.                 CB2 Serial data out (Bits 5-7)
  409.    912D      37165          Interrupt flag register
  410.    912E      37166          Interrupt enable register
  411.    912F      37167          Port A output register
  412.  
  413.  9400-95FF   37888-38399    location of COLOR RAM with
  414.                 additional RAM at blk 1
  415.  9600-97FF   38400-38911    Normal location of COLOR RAM
  416.  9800-9BFF   38912-39935    I/O block 2
  417.  9C00-9FFF   39936-40959    I/O block 3
  418.  A000-BFFF   40960-49152    8K decoded block for expansion ROM
  419.  C000-DFFF   49152-57343    8K Basic ROM
  420.  E000-FFFF   57344-65535    8K KERNAL ROM
  421.  
  422.             177
  423.  
  424.  
  425. USEFUL MEMORY LOCATIONS
  426.  
  427. This is a more in-depth guide to some of the memory locations
  428. you can use.
  429.  
  430. HEX     DECIMAL  DESCRIPTION
  431.  
  432. 0014-0015   20-21    Where BASIC stores integer variables
  433.              used in calculations. The fixed-float and
  434.              float-fixed routines (vectors at 1-2 and
  435.              3-4) use the value in this area.
  436.  
  437. 002B-002C   43-44    The start of the BASIC program in
  438.              memory. Location 43 contains the low
  439.              byte, and location 44 has the high byte.
  440.              To compute the start of BASIC in
  441.              decimal, use the formula: PEEK(43) +
  442.              256 * PEEK(44)
  443.  
  444. 002D-002E   45-46    The start of the numeric variables,
  445.              which is usually immediately after the
  446.              end of the BASIC program.
  447.  
  448. 002F-0030   47-48    The start of arrays in memory, usually
  449.              immediately following the numeric vari-
  450.              ables.
  451.  
  452. 0031-0032   49-50    The end of the arrays in memory.
  453.  
  454. 0033-0034   51-52    Bottom of string storage, moving from
  455.              the top of available memory down to the
  456.              top of arrays.
  457.  
  458. 0037-0038   55-56    The top of free RAM. By lowering this
  459.              value, some RAM can be "protected"
  460.              against BASIC putting values here.
  461.  
  462. 0043-0044   67-68    Jump vector for INPUT statement.
  463.  
  464. 0061-0066   97-102   Floating point accumulator #1 for cal-
  465.              culations.
  466.  
  467. 0069-006E   105-110  Floating point accumulator #2.
  468.  
  469. 0073-008A   115-138  The CHRGET subroutine resides here.
  470.              This routine gets the next BASIC
  471.              character from machine language.
  472.  
  473. 0090        144      Status word ST.
  474.  
  475. 0098        152      Number of open files.
  476.  
  477. 0099        153      Device number for input, normally 0
  478.              (keyboard).
  479.  
  480. 009A        154      Output (CMD) device, normally 3 (screen).
  481.  
  482.             178
  483.  
  484.  
  485. HEX    DECIMAL  DESCRIPTION
  486.  
  487. 00A0-00A2  160-162  3 byte jiffy clock. The Tl and Tl$
  488.             variables are translations of these loca-
  489.             tions.
  490.  
  491. 00B2-00B3  178-179  Points to the start of the tape buffer. Can
  492.             be used as an indirect zero-page jump
  493.             to a routine in the buffer.
  494.  
  495. 00B7       183      Number of characters in filename.
  496. 00B9       185      Which secondary address is currently
  497.             being used.
  498.  
  499. 00BA       186      Current device number being accessed.
  500. 00BB-00BC  187-188  Points to location of filename in memo-
  501.  
  502. 00C5       197      Current key being held down. There will
  503.             be a 64 here if nothing is held down. If
  504.             more than 1 key is down, the key with
  505.             the highest number on the chart is what
  506.             shows up here.
  507.  
  508. #  key            #  key        #  key        #  key
  509. 0  1            16 none        32 space    48 Q
  510. 1  3            17 A        33 Z        49 E
  511. 2  5            18 D        34 C        50 T
  512. 3  7            19 G        35 B        51 U
  513. 4  9            20 J        36 M        52 O
  514. 5  +            21 L        37 .        53 @
  515. 6  £ (pound)    22 ;        38 none        54 ^ (up arrow)
  516. 7  DEL            23 crsr lt/rt   39 f1        55 f5
  517. 8  <-            24 STOP        40 none        56 2
  518. 9  W            25 none        41 S        57 4
  519. 10 R            26 X        42 F        58 6
  520. 11 Y            27 V        43 H        59 8
  521. 12 I            28 N        44 K        60 0
  522. 13 P            29 ,        45 :        61 -
  523. 14 *            30 /            46 =        62 HOME
  524. 15 RETURN       31 crsr up/dn   47 f3        63 f7
  525.  
  526. 00C6       198      Number of characters currently in key-
  527.             board buffer.
  528. 00C7       199      Flag for reverse on/off. A 1 here is on, a
  529.             0 is off.
  530. 00CB       203      Same as 197.
  531. 00D1-00D2  209-210  Address of start of line where cursor is.
  532. 00D3       211      Position of cursor on line.
  533. 00D5       213      Current screen line length--either 21,
  534.             43, 65, or 87.
  535.  
  536.             179
  537.  
  538.  
  539. HEX    DECIMAL  DESCRIPTION
  540.  
  541. 00D6       214      Screen row where cursor is. To change
  542.             the cursor position, locations 209, 210,
  543.             211, and 214 must be changed.
  544.  
  545. 00D8       216      Number of spaces left in INSERT mode.
  546.             POKEing this to a zero will turn off insert
  547.             mode.
  548.  
  549. 00D9-00F0  217-240  Screen line link table. A 158 means that
  550.             the line is finished at the end of that line,
  551.             and a 30 means that the line continues
  552.             on the next line.
  553.  
  554. 00F3-00F4  243-244  Pointer to the current space in color memory.
  555.  
  556. 00FB-00FE  251-254  Available locations in zero page.
  557.  
  558. 0200-0258  512-600  BASIC input buffer--where the charac-
  559.             ters being INPUT will go.
  560.  
  561. 0259-0262  601-610  Logic 1 file table for OPEN files.
  562.  
  563. 0263-026C  611-620  Device # table for OPEN files.
  564.  
  565. 026D-0276  621-630  Secondary address table
  566.  
  567. 0277-0280  631-640  Keyboard buffer. If characters are POKEd in
  568.             here and location 198 (# of characters in
  569.             buffer) is changed, it will be as if the
  570.             characters were typed from the keyboard.
  571.  
  572. 0281-0282  641-642  Start of memory pointer.
  573.  
  574. 0283-0284  643-644  Top of memory pointer.
  575.  
  576. 0286       646      Current color code. This holds the color
  577.             number that goes into color memory
  578.             during PRINT operations.
  579.  
  580. 0288       648      Screen memory page. If you want the
  581.             operating system to know where screen
  582.             memory is, this must be changed as well
  583.             as the VIC chip.
  584.  
  585. 0289       649      Maximum size of keyboard buffer. If this
  586.             is set greater than 10, vital pointers will
  587.             be destroyed.
  588.  
  589. 028A       650      Keyboard repeat flag. If this is a 0, only
  590.             cursor controls repeat; if 128, all keys
  591.             repeat.
  592.  
  593. 028B       651      This determines how long the VIC waits
  594.             before repeating key.
  595.  
  596. 028D       653      Keyboard SHIFT, CTRL, Commodore flag. The SHIFT
  597.             sets the 1 bit, Commodore sets the 2 bit, and
  598.             the CTRL sets the 4 bit.
  599.  
  600.             180
  601.  
  602.  
  603. HEX       DECIMAL  DESCRIPTION
  604. 0291        657    Setting this location to 128 will disable
  605.            switching case, and a 0 here enables
  606.            the ability to switch.
  607.  
  608. 0300-0301   768-769  This is the jump vector for errors. By
  609.              changing this vector, a routine can
  610.              intercept any error condition.
  611.  
  612. 033C-03FB   828-1019 Cassette buffer. This is where data files
  613.              are held before they are INPUT. When
  614.              not using files, this is available for
  615.              POKEing or machine language programs.
  616.  
  617.  
  618.  
  619.  
  620.             181
  621.  
  622.  
  623. -- 
  624. /*  Sam Laur slaur@utu.fi  */
  625. /*   Go finger yourself!   */
  626. -
  627.